import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/backend/sso/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/backend/my/info',
    method: 'post',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/backend/sso/logout',
    method: 'post'
  })
}


//echarts图表
export function getEchartsData(data) {
  return request({
    url: '/backend/data/echarts/',
    method: 'post',
    data
  })
}
//头部卡片
export function getCardData(data) {
  return request({
    url: '/backend/data/head/',
    method: 'post',
    data
  })
}
